package web.api.global.message;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import web.common.core.validation.annotation.Mobile;

import javax.validation.constraints.NotEmpty;

/**
 * @author Jin Zheng
 * @since 1.0 2022-01-25
 */
@Getter
@Setter
@NoArgsConstructor
public class LoginApiRequest {

    @NotEmpty(message = "用户手机号码不能为空")
    @Mobile(message = "用户手机号码格式错误")
    private String mobile;

    @NotEmpty(message = "用户密码不能为空")
    private String password;

}
